package common.database;

public class Employee implements DAO_Obj {

	public static final String TABLE_NAME = "Employees";
	public static final String COLUMN_ID = "id";
	public static final String[][] COLUMNS = { { "name"}, {"varchar(50) NOT NULL" },
			{ "email"}, {"varchar(50) NOT NULL" },
			{ "password"}, {"varchar(50) NOT NULL" } };
	private int id;
	private String name;
	private String email;
	private String password;

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "Name: " + name + " Email: " + email;
	}

	@Override
	public String getTableName() {
		return Employee.TABLE_NAME;
	}

	@Override
	public String getColumnId() {
		return Employee.COLUMN_ID;
	}

	@Override
	public String[][] getColumns() {
		return Employee.COLUMNS;
	}
	
	public static Employee getInstance() {
		return new Employee();
	}
}
